﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SpriteGame
{
    public static class Rand
    {
        public static Random Random = new Random(0x2eed2eed);

        public static float RandomFloat()
        {
            return (float)(Random.NextDouble() * 2.0 - 1.0);
        }

        public static float RandomFloat(float lo, float hi)
        {
            float r = (float)Random.NextDouble();
            r = (hi - lo) * r + lo;
            return r;
        }
    }
}
